﻿<?php
require_once("./include/index_data.php");
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="zh" xml:lang="zh">
<head>
	<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
	<title>程序设计竞赛综合管理系统</title>
	<link rel="stylesheet" type="text/css" href="css/common.css" />
</head>

<body style="background-color:white" onload="init('images')">
	<table align="center" style="width:<?php echo $width;?>" border="0">
		<tr>
			<td><?php require_once("header.php");?></td>
		</tr>
		<tr>
			<td id="content">
				<table style="width:100%;" cellspacing="0" cellpadding="0" border="0">
					<tr>
						<td style="width:30%" valign="top" id="leftPanel">
							<table style="width:100%;border:1px grey solid" cellspacing="0" cellpadding="0">
								<tr>
									<td style="background-color:white;font-weight:bold;height:300px;">
										<script language="javascript" type="text/javascript" charset="UTF-8" src="js/jquery-1.7.2.min.js"></script>
										<script language="javascript" type="text/javascript" charset="UTF-8" src="js/slideshow.js"></script>
										<a id="a" href="">
											<img id="photo" alt="" src="" style="border:0px solid gray;width:300px;height:300px" />
										</a>
										<div id="images" style="display:none">
											<?php 
												foreach($PageArray["imagelist"] as $Object)
												{
													echo "<img alt=\"".$Object->title."\" src=\"./".$Object->src."\" />";
												}
											?>
										</div>
									</td>
								</tr>
								<tr>
									<td >
										<table style="width:100%;" cellspacing="0" cellpadding="0" border="0">
											<tr>
												<td style="background-color:#555555;font-weight:bold;color:white;height:30px;padding-left:10px">友情链接</td>
											</tr>
											<tr>
												<td valign="top" style="padding:15px 0px 15px 28px;font-size:15px">
													<?php 
														foreach($PageArray["linklist"] as $Object)
														{
															echo "<li><a href=\"".$Object->src."\" target=\"_blank\">".$Object->title."</a></li>";
														}
													?>
												</td>
											</tr>
											<tr>
												<td style="height:20px"></td>
											</tr>
										</table>
									</td>
								</tr>
							</table>
						</td>
						<td id="news" valign="top" style="padding:0px 0px 0px 10px;width:70%">
							<table style="width:100%;border:1px grey solid" cellspacing="0" cellpadding="0" >
								<tr valign="top">
									<td  style="text-align:left;padding:5px 10px 5px 20px">
										<div style="padding:20px 30px 10px 30px;">
											<?php echo $hot_content;?><br />
											<div>
												<p style="text-align:center;font-size:13px;" ><?php echo "$hot_time"?></p>
											</div>
										</div>
									</td>
								</tr>
							</table>
							<table style="width:100%;border:1px grey solid" cellspacing="0" cellpadding="0" >
								<tr >
									<td colspan="3" style="background-color:#555555;font-weight:bold;color:white;padding:5px 0px 5px 10px">新闻简讯区</td>
								</tr>
								<tr style="font-size:13px;">
									<td style="padding-top:15px;padding-bottom:10px">新闻标题</td>
									<td style="padding-top:15px;padding-bottom:10px">发表时间</td>
								</tr>
								<?php
									foreach($PageArray["newslist"] as $Object){
								?>
								<tr style="font-size:12px;">
									<td style="padding:0px 0px 5px 20px">
										<li>
											<a href="news.php?id=<?php echo urlencode($Object->id); ?>"><?php echo $Object->title;?></a>
										</li>
									</td>
									<td style="padding:0px 0px 5px 10px">
										<?php echo $Object->time; ?></td>
								</tr>
								<?php } ?>
								<tr>
									<td colspan="3" style="padding:10px 0px 10px 10px;font-weight:bold;font-size:12px">
									<a  href="news.php?id=1"><u>更多新闻</u></a>
									</td>
								</tr>
							</table>
						</td>
					</tr>
				</table>
			</td>
		</tr>
		<tr >
			<td>
				<?php require_once("footer.php") ?> 
			</td>
		</tr>
	</table>
</body>
</html>